<div class="left">
	<h2 class="titles"><?php __('最新单词');?></h2>
	<table class="post-list">
	<tr>
			<th>单词</th>
			<th>添加者</th>
			<th>添加时间</th>
			<th>最后编辑</th>
			<th>语言</th>
			<th >编辑</th>
	</tr>
	<?php
	$i = 0;
	foreach ($words as $word):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $word['Word']['word']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($word['User']['username'], array('controller' => 'users', 'action' => 'view', $word['User']['id'])); ?>
		</td>
		<td><?php echo $word['Word']['created']; ?>&nbsp;</td>
		<td><?php echo $word['Word']['updated']; ?>&nbsp;</td>
		<td><?php echo $html->link($word['Language']['name'],"/languages/view/{$word['Language']['id']}"); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('编辑', true), array('action' => 'edit', $word['Word']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	if (isset($uid)) {
		$paginator->options(array('url' => "../../people/{$uid}/words"));
	}

	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="right">
	<ul>
		<li><?php echo $this->Html->link(__('添加新单词', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>